package com.zjw.video.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zjw.video.common.entity.enums.VideoOriginEnum;
import com.zjw.video.common.entity.enums.VideoTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("video")
public class VideoEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String des;

    private String url;

    private String password;

    private String image;

    private List<String> images;

    private VideoTypeEnum type;

    private VideoOriginEnum origin;

    private LocalDateTime publishTime;

    private LocalDateTime createdDatetime;

    private String createdBy;

    private LocalDateTime updatedDatetime;

    private String updatedBy;
}
